package com.wyh.service;

import com.wyh.common.response.PageInfo;
import com.wyh.common.result.R;
import com.wyh.entity.MsgChatRoomRecord;
import com.wyh.request.MsgChatRoomRecordRequest;

import java.util.List;

/**
 * 【请填写功能名称】接口
 *
 * @author WangYuHang
 * @date 2024-03-08
 */
public interface IMsgChatRoomRecordService {


    /**
     * 发送群聊消息
     * @param msgChatRoomRecordRequest
     * @return
     */
    R<String> sendChatRoomMessage(MsgChatRoomRecordRequest msgChatRoomRecordRequest);


    /**
     * 查询群聊消息
     * @param chatRoomId
     * @return
     */
    R<List<MsgChatRoomRecord>> queryMessage(String chatRoomId);
    /**
     * 新增
     *
     * @param param param
     * @return MsgChatRoomRecord
     */
    MsgChatRoomRecord add(MsgChatRoomRecordRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(MsgChatRoomRecordRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return MsgChatRoomRecord
     */
    MsgChatRoomRecord getById(Integer id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<MsgChatRoomRecord>
     */
    PageInfo<MsgChatRoomRecord> pageList(MsgChatRoomRecordRequest param);


    /**
     * 查询所有数据
     *
     * @return List<MsgChatRoomRecord>
     */
    List<MsgChatRoomRecord> list(MsgChatRoomRecordRequest param);
}
